﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GraphicalObjects
{
    static public class GameScene
    {
        static private List<GraphicalBase> sceneObjects = new List<GraphicalBase>();

        static public void Add(GraphicalBase obj)
        {
            if (!sceneObjects.Contains(obj))
                sceneObjects.Add(obj);
        }

        static public void Remove(GraphicalBase obj)
        {
            if (sceneObjects.Contains(obj))
                sceneObjects.Remove(obj);
        }

        static public void Clear()
        {
            sceneObjects.Clear();
        }

        static public List<GraphicalBase> SceneObjects
        {
            get { return sceneObjects; }
        }
    }
}
